package com.java.config;

import com.java.service.TokenService;
import com.java.service.impl.RedisTokenServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;

@Configuration
public class TokenConfig {

    @Primary
    @Bean
    public TokenService tokenService(){
        return new RedisTokenServiceImpl();
    }

}
